<?php
namespace store\oss;

use utils\ConfigReader;

class OSSConfig
{
    public $ak = "minioadmin";
    public $sk = "minioadmin";
    public $endpoint = "192.168.0.111:9000";
    public $bucket = "test";
    
    function __construct()
    {
        $cr = new ConfigReader();
        $this->ak = $cr->readString("OSS.ak");
        $this->sk = $cr->readString("OSS.sk");
        $this->endpoint = $cr->readString("OSS.endpoint");
        $this->bucket = $cr->readString("OSS.bucket");        
    }
}
?>